﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<ul class="sidebar-menu">
    <li><a href="index.html" data-savehref=""><i class="fa fa-dashboard"></i><span>Dashboard</span></a></li>
    <li><a href="/admin/content-list" data-savehref="/admin/save-content"><i class="fa fa-bar-chart-o"></i><span>Manage Content</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-laptop"></i><span>Manage Settings</span></a></li>
    <li><a href="pages/manage-user.html" data-savehref=""><i class="fa fa-th"></i><span>Manage Users</span></a></li>
    <li><a href="/admin/uom-list" data-savehref="/admin/save-uom"><i class="fa fa-envelope"></i><span>Manage UOM</span></a></li>
    <li><a href="/admin/brand-list"  data-savehref="/admin/save-brand"><i class="fa fa-table"></i><span>Manage Brand</span></a></li>
    <li><a href="/admin/category-list" data-savehref="/admin/save-category"><i class="fa fa-table"></i><span>Manage Category</span></a></li>
    <li><a href="/admin/product-list" data-savehref="/admin/save-product"><i class="fa fa-calendar"></i><span>Manage product</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage Roles</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage State</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage City</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage Product</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage Reviews</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage Orders</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage Order Feedback</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage Shops</span></a></li>
    <li><a href="#" data-savehref=""><i class="fa fa-folder"></i><span>Manage Shops Payments</span></a></li>
</ul>
<script type="text/javascript">
    //Set Highlighted selected menu
    $(document).ready(function () {
        $(".sidebar-menu li").each(function (index) {
            var href = $(this).find("a").attr("href").toLowerCase();
            var saveHref = $(this).find("a").attr("data-savehref").toLowerCase();
            if (location.href.toString().toLowerCase().indexOf(href) > 0 || location.href.toString().toLowerCase().indexOf(saveHref) > 0) {
                $(this).addClass("active");
                return;
            }
        });
    });
</script>
